package person.twj.securitysessionredis.core;

import jakarta.servlet.http.HttpServletRequest;

import java.util.HashMap;
import java.util.Map;

public class RequestAttributeNamesUtil {
    public static Map<String, Object> resolve(HttpServletRequest request){
        Map<String, Object> map = new HashMap<>();
        request.getAttributeNames().asIterator().forEachRemaining(t->{
            map.put(t, request.getAttribute(t));
        });
        return map;

    }
}
